
// 上一课
(async () => {
  let n =
    (await callBTT("get_number_variable", { variable_name: "ACIM_WORK" })) || 1;

  await callBTT("set_persistent_number_variable", {
    variable_name: "ACIM_WORK",
    to: n === 1 ? 361 : n - 1,
  });

  callBTT("refresh_widget", { uuid: "309BCC18-AC93-4F37-BD44-AB25507E0869" });

  returnToBTT("Prev");
})();

// 下一课
(async () => {
  let n =
    (await callBTT("get_number_variable", { variable_name: "ACIM_WORK" })) || 1;

  await callBTT("set_persistent_number_variable", {
    variable_name: "ACIM_WORK",
    to: n === 361 ? 1 : n + 1,
  });

  callBTT("refresh_widget", { uuid: "309BCC18-AC93-4F37-BD44-AB25507E0869" });

  returnToBTT("Next");
})();
